{% extends "base.html" %}

{% block content %}
    <h1>编辑结算信息</h1>
    <form method="post">
        {% csrf_token %}
        <div class="mb-3">
            <label for="manual" class="form-label">人工标注</label>
            <input type="text" class="form-control" id="manual" name="manual" value="{{ settlement.manual }}">
        </div>
        <div class="mb-3">
            <label for="status" class="form-label">状态</label>
            <select class="form-select" id="status" name="status">
                {% for value, name in status_choices %}
                    <option value="{{ value }}" {% if settlement.status == value %}selected{% endif %}>{{ name }}</option>
                {% endfor %}
            </select>
        </div>
        <button type="submit" class="btn btn-primary">保存</button>
        <a href="{% url 'settlement_list' %}" class="btn btn-secondary">取消</a>
    </form>
{% endblock %}